<div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
    <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#ownerInfo')}">
        <fieldset>
            <div style="margin:0; padding:1px 5px 5px;">
                <span>名称：</span>
                <input type="text" name="customerName" class="form-
control" size="10">
                <span>联系人：</span>
                <input type="text" name="contact" class="form-control"
                       size="10">
                <div class="btn-group">
                    <button type="submit" class="btn-green" data-
                            icon="search">开始搜索！</button>
                    <button type="reset" class="btn-orange" data-
                            icon="times">重置</button>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="ownerInfo" data-toggle="datagrid" data-options="{
        height: '100%',
        local: 'remote',
        showToolbar: true,
        toolbarItem: 'add, edit, del',
        dataUrl: '/sysmanage/customer/listdata.do',
        editMode: {dialog:{width:'1000',height:800,mask:true,title:'编辑'}},
        editUrl: '/sysmanage/customer/add.do?{id}',
        delUrl :'/sysmanage/customer/del.do',
        paging: {pageSize:20, pageCurrent:1},
        linenumberAll: false,
        filterThead:false,
        sortAll: true
    }">
        <thead>

        <tr>
            <th data-options="{name:'id',align:'center' }"
                width="100px">id</th>
            <th data-options="{name:'name',align:'center'}" width="140px">
                名称</th>
            <th data-options="{name:'contact',align:'center'}"
                width="150px">联系人</th>
            <th data-options="{name:'tel',align:'center'}" width="200px">联系电话</th>
            <th data-options="{name:'location',align:'center'}" width="200px">位置</th>
            <th data-options="{align:'center',render:'setcreatedate'}" width="200px">创建时间</th>
        </tr>
        </thead>
    </table>
</div>
<script type="text/javascript">
    function setcreatedate(value, data) {
        return formatDate(new Date(data.createdate));
    }

</script>